﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebApiV4Test.Domain
{
    public interface IRespository<T>
    {
        IQueryable<T> Table { get; }
        T GetById(int Id);

        void Insert(T entity);
        void InsertBulk(IEnumerable<T> list);

        void Delete(T entity);
        void Delete(int id);
        void Delete(IEnumerable<T> entites);

        void Update(T entity);
    }
}
